<div id="cms">
<table class="table">
	<tr>
		<th width="130">Datum</th>
		<th width="15%">Name</th>
		<th width="">E-Mail</th>
		<th width="">Text</th>
		<th width="">Ersteller</th>
		<th width="100">IP-Adresse</th>
		<th width="70">Bearbeiten</th>
	</tr>
	
{foreach from=$Guestbook_Items item=i name=fe}
	<tr{if $smarty.get.markid==$i->pkGuestbook || $smarty.foreach.fe.first || $smarty.foreach.fe.last} class="{if $smarty.get.markid==$i->pkGuestbook}marked{/if}{if $smarty.foreach.fe.first} first{/if}{if $smarty.foreach.fe.last} last{/if}"{/if}>
		<td>{$i->createDate}</td>
		<td>{$i->name}</td>
		<td>{$i->mail}</td>
		<td>{$i->text|truncate:100:"...":true}</td>
		<td>{$i->createUserName}</td>
		<td>{$i->ip}</td>
		<td>
			{html_linkbutton icon="write.png" text="Bearbeiten" link="$Sys_CurrentPageURL&amp;method=edititem&pkGuestbook=" addlink=$i->pkGuestbook type="icon" size="20" enabled=$i->canUpdate()}
			{html_linkbutton icon="delete.png" text="L&ouml;schen" link="$Sys_CurrentPageURL&amp;method=deleteitem&pkGuestbook=" addlink=$i->pkGuestbook type="icon" size="20" enabled=$i->canDelete()}
		</td>
	</tr>		
{/foreach}
</table>
</div>